<?php
/**
 * User: xzq
 * Date: 2018/8/6
 * Time: 16:36
 */

namespace app\wechat\home;
use app\common\controller\Common;
use app\wechat\model\Open as OpenModel;
class Open extends Common
{
    /**
     * 开馆时间列表
     * @return mixed
     */
    public function openlist(){
        $open = new OpenModel();
        $list = $open->getAll();
        foreach ($list as $key => $value){
            $list[$key]['week'] =getWeekName($value['week']);
            $list[$key]['period'] =getTimeName($value['period']);
        }
        return show(1,'成功',$list);
    }

}